package com.pigs.pigsordersystem.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pigs.pigsordersystem.entity.ProductEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Y.yang
 * @since 2020-03-14
 */
public interface IProductService extends IService<ProductEntity> {
    /**
     * 查询 产品信息
     * @return
     */
    public List<ProductEntity> queryProductList();


    /**
     * 查询 客户 购买订单 记录
     *
     * @param userName
     * @param page
     * @return
     */
    public IPage<ProductEntity> queryOrderList(Page page, String userName);

}
